kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:28:31 +0000 (09:28 +0100)]
[BLKTAP]: Fix potential grant entry leaks on error
As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.
This patch changes it so that we will continue to reap grant entries
even when an error is detected.
There is still a potential leak if create_lookup_pte_addr fails
in fast_flush_area. This leak is not affected by this patch.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:24:26 +0000 (09:24 +0100)]
[BLKTAP]: Kill bogus fast_flush_area
The function dispatch_rw_block_io may call fast_flush_area even before
a pending request has been initialised. This patch deletes that call.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Fri, 20 Oct 2006 08:22:58 +0000 (09:22 +0100)]
[BLKTAP]: Kill duplicate fast_flush_area call
The dispatch_rw_block_io may call fast_flush_area twice if
create_lookup_pte_addr fails (there is a flush call at fail_flush
already). The second call simply causes warnings to be printed
on the console. This patch removes the duplicate call.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Thu, 19 Oct 2006 21:05:07 +0000 (22:05 +0100)]
[VMXASSIST] Some reports that macros do not get picked up by CPP
if they are prefixed with $. Fix by placing macro uses in ().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 16:01:51 +0000 (17:01 +0100)]
[SOLARIS] Don't use -nostdinc as it prevents getting stadrg.h
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 15:32:11 +0000 (16:32 +0100)]
[HVM] Windows HCT requires non-zero subvendor details in platform PCI device.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:53:12 +0000 (15:53 +0100)]
[XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:49:16 +0000 (15:49 +0100)]
[HVM][VMX] Use CPUID instruction virtualization to workaround VMXAssist 4G limit.
Address space access limit in VMXAssist is 4G, because IA-32 only has
4GB virtual address space which VMXassist can use to map physical
memory. The issue is, win2k3 server with more than 4G memory will put
AP GDT above 4G, so when AP changes its mode from real mode to PAE
paging mode, the long jump instrction it uses need access AP GDT
entries which resides above 4G, but because of this constraint, it can
not access GDT and so fails boot.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:15:36 +0000 (15:15 +0100)]
[ACM] An environment where ACM and its tools have not been installed before
will throw an error during 'make' of the test suite. This fixes the problem.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:14:25 +0000 (15:14 +0100)]
[ACM] Add missing alignment operations for the ACM module.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 14:13:09 +0000 (15:13 +0100)]
Don't use $(LINK.o), as it doesn't pick up -m32/-m64 from $(CFLAGS).
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:56:02 +0000 (14:56 +0100)]
[HVM] PCmark2005 running in WinXP needs following extension to mmio decoder.
Als fix some inconsistencies, the comments of mmio decoder use AT&T
ordering for operands, but the syntax looks like Intel asm. This leads
to much confusion.
Signed-off-by: Qing He <qing.he@intel.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:53:31 +0000 (14:53 +0100)]
[XENTRACE] Fix typo in set_cpu_mask op.
From: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:50:47 +0000 (14:50 +0100)]
[BLKTAP]: Copy shared data before verification
As it is blktap verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it. This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Thu, 19 Oct 2006 13:38:34 +0000 (14:38 +0100)]
[XEN] Forcibly undefine swap{16,32,64} in mkelf32 program.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 18:23:32 +0000 (19:23 +0100)]
[NET] front: Fix "rmmod xennet" crash in dom0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 18:20:36 +0000 (19:20 +0100)]
[HVM] XenTrace enhancement for HVM SMP guests.
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 18:14:34 +0000 (19:14 +0100)]
Replace test-gcc-flag with Linux-style cc-option.
Improve on Linux implementation by looking for any output
on stdout/stderr. This indicates badness.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:41:47 +0000 (18:41 +0100)]
[HVM] Enable DMA mode for CD-ROM IDE ATAPI interface.
Signed-off-by: Winston Wang <winston.l.wang@intel.com
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:37:18 +0000 (18:37 +0100)]
[TPM] Check the existence of the xenstore path before trying to read from it.
This prevents an error from being logged. Use the wrapped command for
reading from the xenstore instead of the native one.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:35:21 +0000 (18:35 +0100)]
[HVM] Move RTC emulation into the hypervisor.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 17:13:57 +0000 (18:13 +0100)]
[SOLARIS] More tools fixes.
Many of the tools use C99 features such as bool, or expect certain functions.
Fix the CFLAGS to enable these on Solaris.
Also make sure the correct $CC is passed to Python.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:59:04 +0000 (17:59 +0100)]
[NET] front/back: Avoid unaligned accesses to IP datagrams. These
cause noisy warnings on IA64.
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)]
[ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.
Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:54:06 +0000 (17:54 +0100)]
[ACM] Add access control module information for hypercalls and
xenstore entries to the interface manual.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:45:19 +0000 (17:45 +0100)]
[XEN] Clamp dom0 memory and CPUs to fit in available resources.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:41:36 +0000 (17:41 +0100)]
[LINUX] Eliminate microcode driver's dependency on sys_m{,un}lock as
well as the needless use of static variables.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:39:52 +0000 (17:39 +0100)]
[HVM] E820 table misreports the ACPI NVS/Data information which
triggers a complaint from Windows HCT.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:29:08 +0000 (17:29 +0100)]
[ACM] Fix binary alignment in tools.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:24:36 +0000 (17:24 +0100)]
[ACM] Makes acm_setup arch-independant.
Move module extraction code to x86/setup.c
Be sure the dump binary file is aligned.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:17:15 +0000 (17:17 +0100)]
[ACM] Keep stream aligned.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 16:08:09 +0000 (17:08 +0100)]
[OpenBSD] Various changes to get Xen building on OpenBSD.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 15:56:27 +0000 (16:56 +0100)]
Clean up linker flag definitions.
1. GNU ld does not understand -m{32,64}. It must be cooked for it by
the GCC driver program.
2. Where GNU ld is directly called we must use -melf_{i386,x86_64}.
3. We cannot avoid calling GNU ld directly in some cases (e.g., when
specifying GNU-specific linker scripts) as on some host
architectures the GCC driver is configured to call the host
linker.
4. We cannot add -melf_{i386,x86_64} to LDFLAGS as the option is
not recognised by GCC.
Hence we define new LDFLAGS_DIRECT, to be added to the command line
only when invoking GNU ld directly.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 15:08:58 +0000 (16:08 +0100)]
[TPM] Allow all tests of the xm test suite to be run when ACM
security is turned on in hypervisor. This is done by implicitly
labeling VMs and resources if they have not been labeled through
explicit calls.
To allow the xm tests suite to label resources automatically, run
./configure --enable-full-labeling
once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 15:07:55 +0000 (16:07 +0100)]
[TPM] Add tests cases for the ACM security hooks and tools to
the xm test suite. The tests can be run with ACM turned off (not
compiled into Xen; see user doc for this), but most of them will be
skipped then. They can be run with a command like
make -C tests/security-acm check-TESTS
from the xm-test directory. They are also part of the default tests in
the tests suite and part of a new group test 'security'.
Since some of the tests require resources to be labeled, one must
explicitly enable the resources to be allowed to be labeled by the
test
suite by running
./configure --enable-full-labeling
once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 14:26:08 +0000 (15:26 +0100)]
Fix 'chk' scripts for generic shell (non-bash) and *BSD.
From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 14:16:37 +0000 (15:16 +0100)]
[TPM] Fix the tpm frontend to properly shut down when the domain
is shutting down (call to xenbus_frontend_closed()). Also the driver
now waits longer until an outstanding response has been received (to
support a busy system). Moves the 'Unknown' state with the other
states that are not used by the TPM frontend.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 14:13:41 +0000 (15:13 +0100)]
[HVM] MMIO/PIO fixes and cleanups.
1. Fix MMIO/PIO cross page boundary copy for MOVS and OUTS/INS
handling.
2. Clean up send_mmio_req/send_pio_req interface.
3. Clean up handle_mmio.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 13:46:48 +0000 (14:46 +0100)]
[XEN] Can be built -std=gnu99 (except for .S files).
Need to be careful with static initialisers:
1. *_LOCK_UNLOCKED, CPU_MASK_* no longer include a cast
2. Dynamic uses of the above are replaced by
appropriate function invocations.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Wed, 18 Oct 2006 13:36:20 +0000 (14:36 +0100)]
Merge
Tim Deegan [Wed, 18 Oct 2006 13:34:31 +0000 (14:34 +0100)]
[XEN] Fix CR3 plumbing for shadowed PV PAE guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 12:43:35 +0000 (13:43 +0100)]
Avoid need for GREP variable by avoiding GNUisms. The
only one we appear to have is use of '-q'. Replace it
with redirection to /dev/null.
Also avoid use of 'tail' by replacing with 'head' or
'grep' as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 10:38:59 +0000 (11:38 +0100)]
xc core structures are not Linux specific.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Wed, 18 Oct 2006 10:37:45 +0000 (11:37 +0100)]
Use new 'hg parents --template' support instead of awk scraping.
Also avoid use of non-portable 'whoami'. Use the USER env var instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 18:04:46 +0000 (19:04 +0100)]
[SOLARIS] Provide non-gcc-specific defn. of RING_HAS_UNCONSUMED_REQUESTS.
From: Mark Johnson <mark.johnson@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 18:03:47 +0000 (19:03 +0100)]
[NET] back: Remove unused variable declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:52:17 +0000 (18:52 +0100)]
[SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:50:08 +0000 (18:50 +0100)]
Define REX64_PREFIX to account for assembler syntax differences on SVR4 targets.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:45:18 +0000 (18:45 +0100)]
Add a XEN_VENDORVERSION variable to allow additional text on top of
the extra version.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:36:26 +0000 (18:36 +0100)]
It's not correct to call endwin() if initscr() fails, and it crashes
older libcurses implementations.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:35:13 +0000 (18:35 +0100)]
Fix multiple inclusion when building libxenguest.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:28:27 +0000 (18:28 +0100)]
[SOLARIS] The hotplug scripts live in a different place on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:23:24 +0000 (18:23 +0100)]
[SOLARIS] Add the correct machine name for Solaris to arch.py.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:22:19 +0000 (18:22 +0100)]
Allow CONFIG_IOEMU=n to work.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:21:25 +0000 (18:21 +0100)]
[SOLARIS] Create kernel-interface implementations for libxc and xenstored.
Additionally, on Solaris, tell the kernel when xenstored is running.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:17:19 +0000 (18:17 +0100)]
[SOLARIS] Disable "chk" script. The tests aren't portable and there's little need for it.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:15:59 +0000 (18:15 +0100)]
[SOLARIS] A couple of simple compile fixes for tools/ on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:05:42 +0000 (18:05 +0100)]
Remove ERR() macro from libxc. Use ERROR/PERROR as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 17:00:51 +0000 (18:00 +0100)]
Remove non-existent xc_ptrace_core() from xenctrl.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:59:32 +0000 (17:59 +0100)]
[SOLARIS] Don't build ptrace code on Solaris.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:29:19 +0000 (17:29 +0100)]
[SOLARIS] On sysv platforms, gas defaults '/' to a comment
character. Pass in the right option to disable this behaviour, so
Xen's semantics of "divide" apply.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:27:11 +0000 (17:27 +0100)]
[SOLARIS] Fix Xen build. ACPI headers aren't Linux-specific.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:19:31 +0000 (17:19 +0100)]
[SOLARIS] Some makefile fragments expect a better shell than Solaris's /bin/sh,
so force bash usage.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 16:17:57 +0000 (17:17 +0100)]
[SOLARIS] On Solaris, GCC is configured to use Sun's LD. Fix the build to use
the correct flags, and link against libsocket where necessary.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:53:39 +0000 (16:53 +0100)]
[SOLARIS] Use GNU grep on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:51:09 +0000 (16:51 +0100)]
[SOLARIS] A couple of small fixes to the Makefiles for the kernel tool headers.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:48:05 +0000 (16:48 +0100)]
Introduce Makefile config fragments for OS-specific differences.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:13:13 +0000 (16:13 +0100)]
Remove obsolete tool 'mbootpack'. SYSLINUX now supports Multiboot format.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 15:10:09 +0000 (16:10 +0100)]
Ignore tags and cscope from different tools versions, plus .config.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 14:57:05 +0000 (15:57 +0100)]
Clean up duplication of 'install' macros in the Makefiles.
Signed-off-by: John Levon <john.levon@sun.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 14:54:06 +0000 (15:54 +0100)]
Define -m32/-m64 in LDFLAGS for x86 builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 14:53:42 +0000 (15:53 +0100)]
Don't use -Wunused-value. It's too aggressive with GCC4.
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Tue, 17 Oct 2006 14:18:51 +0000 (15:18 +0100)]
[XEN] remove dead code from shadow auditing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 17 Oct 2006 10:14:17 +0000 (11:14 +0100)]
[XEN] Heuristic for fast revoke-write-access in HIGHPTE linux guests
This adds a heuristic for speeding up revocation of write access to
pagetables for HIGHPTE linux kernels, which previously had to brute-force
search all L1 shadows.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 17 Oct 2006 10:11:48 +0000 (11:11 +0100)]
[XEN] Don't keep shadows of PAE guest l3 tables.
Holding pages readonly that have guest PAE l3 tables in them means
a performance hit and potential bug if the guest puts other
datastructures on the same page as an l3 table. Instead of shadowing
them, treat PAE guests as if they had four CR3 registers, and load all
four top-level entries when we handle a CR3 write. This also cuts about
500 lines of special-case refcounting and re-copying code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Tim Deegan [Tue, 17 Oct 2006 10:07:11 +0000 (11:07 +0100)]
[XEN] Don't kill shadowed guest for writing bogus PTEs.
If a guest writes a "bad" pagetable entry and we fail to unshadow the
page, don't kill the guest. This makes the behaviour the same as
if the bad PTE were already in place when we shadowed the page.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Tue, 17 Oct 2006 08:59:11 +0000 (09:59 +0100)]
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:53:20 +0000 (09:53 +0100)]
[XENOPROF] Add a lock around the xenoprof hypercall. It mutates global state.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:52:33 +0000 (09:52 +0100)]
[XENOPROF] Fix limit-check overflow.
Fix code limiting XENOPROF_get_buffer and XENOPROF_set_passive
argument max_samples so that no more than MAX_OPROF_SHARED_PAGES are
used.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:21:49 +0000 (09:21 +0100)]
[SHADOW] Trivial whitespace fix to a couple of printf format strings.
From: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:19:26 +0000 (09:19 +0100)]
[XEND] Check for and fail on non-existent floppy-drive file when starting HVM guest.
The qemu device model hangs when a non-existent floppy file is passed
via 'fda' or 'fdb'. The attached patch checks whether the floppy file
exists and raises an error if it does not.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kfraser@localhost.localdomain [Sun, 15 Oct 2006 08:15:51 +0000 (09:15 +0100)]
[HVM] Fix PIC IO intercept: addresses are physical, not virtual.
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
kfraser@localhost.localdomain [Fri, 13 Oct 2006 17:04:33 +0000 (18:04 +0100)]
[NET] front: Do not read features from backend until it enters InitWait.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 13 Oct 2006 16:10:27 +0000 (17:10 +0100)]
[NET] back: Simplify probing of new interfaces. There's no need
to watch for creation of the handle node in xenstore, as it is
written by xend when creating the backend directory as part of
the same transaction.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Fri, 13 Oct 2006 16:07:39 +0000 (17:07 +0100)]
[NET] front: No need to read handle field from xenstore. It's not used.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Fri, 13 Oct 2006 09:58:29 +0000 (10:58 +0100)]
[IOEMU] Fix argument to parse_host().
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 16:53:51 +0000 (17:53 +0100)]
[HVM][SVM] Use proper name for the K8 VM_CR MSR.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 15:12:10 +0000 (16:12 +0100)]
[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.
Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled). Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.
Signed-off-by: Wei Huang <wei.huang2@amd.com>=20
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
kfraser@localhost.localdomain [Thu, 12 Oct 2006 15:09:15 +0000 (16:09 +0100)]
[NET] back: Copy tx_ring data before verification
We need to make a copy of data from tx_ring before
verifying them as otherwise what we end up using may
be different from what was verified.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:28:59 +0000 (14:28 +0100)]
[HVM] Fix resource leak in error path of AP bringup.
Based on a patch from Kouya Shimura.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:27:20 +0000 (14:27 +0100)]
[XEN] Fix booting with dom0_mem specifying 4GB or more.
Signed-off-by: Charles Coffing <ccoffing@novell.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:25:51 +0000 (14:25 +0100)]
Fix privcmd mmap() on 64b architectures for regions larger than 2GB.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:14:58 +0000 (14:14 +0100)]
Include resources for PV xen-platform device in ACPI DSDT.
From: Qing He <qing.he@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 13:14:12 +0000 (14:14 +0100)]
[HVMLOADER] Remove an unused variable from an SMBIOS function.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 12:55:03 +0000 (13:55 +0100)]
[IA64] Add support for enforcing singleshot mmap() semantics at the
privcmd interface.
From: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 10:44:53 +0000 (11:44 +0100)]
[PRIVCMD] Fix ia64 domain creation by abstracting the singleshot mapping check.
Signed-off-by: Keir Fraser <keir@xensource.com>
Christian Limpach [Thu, 12 Oct 2006 10:26:07 +0000 (11:26 +0100)]
[xenstore] Don't create a transaction for singleton read/write operations.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Christian Limpach [Thu, 12 Oct 2006 10:25:32 +0000 (11:25 +0100)]
[xenstore] Don't limit the number of concurrent transactions for domain0 connections
since both xend and the xenstore-* utilities used in the hotplug
scripts can easily reach the limit and we trust them anyway.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Tim Deegan [Thu, 12 Oct 2006 10:08:48 +0000 (11:08 +0100)]
[XEN] Fix race in shadow invlpg
This fixes a crash under mmstress in SMP linux guests, where one vcpu
could remove shadow entries when another was reading them for invlpg.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kfraser@localhost.localdomain [Thu, 12 Oct 2006 09:56:41 +0000 (10:56 +0100)]
[NET] back: Fix inter-domain networking when using rx-copy path.
Signed-off-by: Keir Fraser <keir@xensource.com>